package com.teamclub.pay.sservices.third

import com.fasterxml.jackson.databind.JsonNode
import com.teamclub.domain.pay.order.PayOrder
import com.teamclub.pay.sforms.PayOrderForm
import com.teamclub.util.errors.ErrorCode
import com.teamclub.util.libs.F

trait IPayService {
  def appPay(form: PayOrderForm): F.Either[JsonNode, ErrorCode]
  def thirdQuery(form: PayOrderForm, order: PayOrder): F.Either[PayOrder, ErrorCode]
}